package com.cet.designpatterns.command;

/**
 * @program: algorithm
 * @description: 命令接受者角色
 * @author: 陈恩涛
 * @create: 2021-09-18 10:00
 **/
public class Light {

    public void on() {
        System.out.println("电灯打开了");
    }

    public void off() {
        System.out.println("电灯关闭了");
    }
}
